<?php

/**
 * 
 *
 * @version $Id: conf.inc.php,v 1.10 2005/08/01 10:16:40 phppc Exp $
 * @copyright 2004 
 **/

$this->uf_field[1] = "news_length";
$this->uf_field[2] = "lim_option";
	$this->uf_input[2]["type"] = "input_name";
	$this->uf_input[2]["start"] = 0;
	$this->uf_input[2]["ende"] = 3;
	$this->uf_input[2]["style"]["type"] = "standard";
$this->uf_field[3] = "news_show";
	$this->uf_input[3]["size"] = 5;
	$this->uf_input[3]["ml"] = 5;
$this->uf_field[16] = "show_h_news";
	$this->uf_input[16]["type"] = "yes_no";	
$this->uf_field[4] = "lim_header";
	$this->uf_input[4]["type"] = "input_name";
	$this->uf_input[4]["start"] = 0;
	$this->uf_input[4]["ende"] = 3;
	$this->uf_input[4]["style"]["type"] = "standard";
$this->uf_field[22] = "hnews_begr";
	$this->uf_input[22]["size"] = 9;
	$this->uf_input[22]["ml"] = 9;	
$this->uf_field[15] = "h_news";
	$this->uf_input[15]["size"] = 5;
	$this->uf_input[15]["ml"] = 5;
$this->uf_field[5] = "news_per_page";
	$this->uf_input[5]["size"] = 3;
	$this->uf_input[5]["ml"] = 3;
$this->uf_field[6] = "guest_perm";
	$this->uf_input[6]["type"] = "input_db";
	$this->uf_input[6]["abfrage"] = "SELECT id,name FROM ".$this->config["prefix"]."perm";
	$this->uf_input[6]["id"] = "id";
	$this->uf_input[6]["name"] = "name";
$this->uf_field[7] = "standard_perm";
	$this->uf_input[7]["type"] = "input_db";
	$this->uf_input[7]["abfrage"] = "SELECT id,name FROM ".$this->config["prefix"]."perm";
	$this->uf_input[7]["id"] = "id";
	$this->uf_input[7]["name"] = "name";
$this->uf_field[8] = "a_anhang";
	$this->uf_input[8]["type"] = "yes_no";
$this->uf_field[9] = "anhang_files";
	$this->uf_input[9]["size"] = 20;
	$this->uf_input[9]["ml"] = 100;
$this->uf_field[10] = "anhang_size";
	$this->uf_input[10]["size"] = 5;
	$this->uf_input[10]["ml"] = 5;
$this->uf_field[11] = "lang";
	$this->uf_input[11]["type"] = "input_lang";
$this->uf_field[12] = "time_zone";
$this->uf_field[13] = "regist_option";
	$this->uf_input[13]["type"] = "input_name";
	$this->uf_input[13]["start"] = 0;
	$this->uf_input[13]["ende"] = 3;
	$this->uf_input[13]["style"]["type"] = "standard";
$this->uf_field[14] = "default_style";
	$this->uf_input[14]["type"] = "input_db";
	$this->uf_input[14]["abfrage"] = "SELECT id,name FROM ".$this->config["prefix"]."style";
	$this->uf_input[14]["id"] = "id";
	$this->uf_input[14]["name"] = "name";
$this->uf_field[17] = "older_news";
	$this->uf_input[17]["size"] = 5;
	$this->uf_input[17]["ml"] = 5;
$this->uf_field[18] = "s_older_news";
	$this->uf_input[18]["type"] = "yes_no";
$this->uf_field[19] = "archiv_per_page";
	$this->uf_input[19]["size"] = 3;
	$this->uf_input[19]["ml"] = 3;
$this->uf_field[20] = "lim_archiv";
	$this->uf_input[20]["type"] = "input_name";
	$this->uf_input[20]["start"] = 0;
	$this->uf_input[20]["ende"] = 3;
	$this->uf_input[20]["style"]["type"] = "standard";
$this->uf_field[21] = "archiv_length";
	$this->uf_input[21]["size"] = 3;
	$this->uf_input[21]["ml"] = 3;
$this->uf_field[23] = "pw_mode";
	$this->uf_input[23]["type"] = "input_name";
	$this->uf_input[23]["start"] = 0;
	$this->uf_input[23]["ende"] = 1;
	$this->uf_input[23]["style"]["type"] = "standard";
$this->uf_field[24] = "summer_time";
	$this->uf_input[24]["type"] = "input_name";
	$this->uf_input[24]["start"] = 0;
	$this->uf_input[24]["ende"] = 2;
	$this->uf_input[24]["style"]["type"] = "standard";
$this->uf_field[25] = "allow_coms";
	$this->uf_input[25]["type"] = "input_name";
	$this->uf_input[25]["start"] = 0;
	$this->uf_input[25]["ende"] = 2;
	$this->uf_input[25]["style"]["type"] = "standard";
$this->uf_field[26] = "a_images";
	$this->uf_input[26]["size"] = 20;
	$this->uf_input[26]["ml"] = 80;
$this->uf_field[27] = "images_max_size";
	$this->uf_input[27]["size"] = 10;
	$this->uf_input[27]["ml"] = 10;
$this->uf_field[28] = "start_n_preview";
	$this->uf_input[28]["size"] = 4;
	$this->uf_input[28]["ml"] = 4;
$c_only = $this->fun_sg2var("c_only");
$c_only = $this->uf_form_conf_def($c_only,array(1,2),1);
$c_array[1] = "";
$c_array[2] = array(1,2,3);
$conf = $this->fun_sg2var("conf");
$conf = $this->uf_form_conf_def($conf,array("show","edit"),"show");
$this->module_new_value["action"] = "conf";
if ($conf == "show") {
	$conf_nav = $this->uf_link_nav_creator($c_only,"admin_conf_nav_","c_only",array(1,2),$this->fun_make_link("admin.php","conf=show"),"admin_nav","admin_nav_one","aktiv","nc","","","admin/");
	$hidden_array["conf"] = "edit";
	$hidden_array["c_only"] = $c_only;
	$confs = $this->uf_create_complete_form("admin_conf_title",$hidden_array,"admin_conf_submit","admin_conf_reset","complete_form","uf/","admin.php",$this->db_config,"admin_conf_one_","text","icreator_one","uf/",$c_array[$c_only]);
	$this->tpl_load("conf","admin/");
	$this->tpl_replace_vars(array("conf_nav" => $conf_nav, "confs" => $confs));
	$nc_main = $this->tpl_output();
}elseif ($conf == "edit") {
	list($input_array,$abfrage) = $this->uf_create_array_conf("update",$c_array[$c_only]);
	$valid_input = $this->uf_form_conf($input_array);
	if ($valid_input == 1) {
	    $this->db_abfrage_q("UPDATE ".$this->config["prefix"]."config SET $abfrage");
		$this->message_green[] = 12;
	}else $this->message_red[] = 1;
	$this->w_leitung["url"] = $this->fun_make_link("admin.php","conf=show"); 
	$this->w_leitung["number"] = 1;
}

?>